package puyu.manage.service.security.service;


import org.springframework.security.core.Authentication;

import java.util.Date;
import java.util.Map;

public interface CommonLogin {
    /**
     * 登陆
     *
     * @return
     */
    Map<String, Object> login(Map<String, Object> map);


    /**
     * 登陆超时
     *
     * @param authentication
     * @param username
     * @return
     */
    Map<String, Object> loginOverTime(Authentication authentication, String username, String type);

    /**
     * 用户验证
     *
     * @param authentication
     * @param username       用户名
     * @param password       密码
     * @param sysParameter   系统参数
     * @param loginNum
     * @return
     */
    Map<String, Object> authentication(Authentication authentication, String username, String password, Integer loginNum);
}
